package com.itcast.common.model.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

@Data
@ApiModel("检查项分页查询请求模型")
public class CheckItemAddReqDTO {

    /**
     * 检查组ID
     */
    @ApiModelProperty("检查组id")
    private Integer checkGroupId;


    /**
     * 检查项说明
     */
    @ApiModelProperty("检查项说明")
    @Min(value = 0, message = "检查项说明最少0个字符")
    @Max(value = 100, message = "检查项说明最多100个字符")
    private String itemDescription;

    /**
     * 检查项名称
     */
    @ApiModelProperty("检查项名称")
    @Min(value = 0, message = "检查项名称最少0个字符")
    @Max(value = 20, message = "检查项名称最多20个字符")
    private String itemName;

    /**
     * 检查项价格
     */
    @ApiModelProperty("检查项价格")
    @Min(value = 0, message = "价格必须大于0")
    private Double itemPrice;

    /**
     * 性别
     */
    @ApiModelProperty("检查项适用性别")
    @Max(value = 2, message = "性别最长为不限")
    private Integer itemSex;

    /**
     * 适用人群
     */
    @ApiModelProperty("适用人群")
    @Max(value = 4, message = "适用人群最长为4")
    @Min(value = 0, message = "适用人群最少为0")
    private Integer targetConsumer;

    /**
     * 单位
     */
    @ApiModelProperty("单位")
    @Min(value = 0, message = "单位最少0个字符")
    @Max(value = 20, message = "单位最多20个字符")
    private String unit;
}
